package crazy.collection;

import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

public class TreeSetRemove
{
	public static void main(String[] args)
	{
		Set<String> set = new TreeSet<String>();
		set.add("111");
		set.add("222");
		set.add("333");
		
		for (Iterator it = set.iterator(); it.hasNext();)
		{
			String ele = (String) it.next();
			if (ele.equals("333"))
			{
				set.remove(ele);
			}
		}
	}
}
